package com.cfushn.ddd.tools.string;

/**
 * sql 列拼接
 *
 * @author CFuShn 2021/11/30 14:55
 */
@SuppressWarnings("unused")
public class ColsBuilder extends LineBuilder<ColsBuilder> {

    @Override
    public ColsBuilder append(Object s) {
        if (s != null) {
            if (thisBuilder.length() == 0) {
                thisBuilder.append("\n(");
            } else {
                thisBuilder.append(",");
            }
            thisBuilder.append(s);
        }
        return this;
    }
}
